package com.fulihui.wgj.admin.api.miniapp;

import com.fulihui.common.result.web.Result;
import com.fulihui.wgj.admin.api.base.BaseController;
import com.fulihui.wgj.admin.api.miniapp.vo.MiniAppBasicVO;
import com.fulihui.wgj.admin.integration.MiniAppBasicServiceClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: Levon
 * @date: 2018-07-26 13:58
 */
@RestController
@RequestMapping("/miniapp/basic")
@Api(tags = "小程序基础查询相关接口")
public class MiniAppBasicController extends BaseController {

    @Autowired
    private MiniAppBasicServiceClient miniAppBasicServiceClient;

    @RequestMapping(value = "/list", method = RequestMethod.POST)
    @ApiOperation("获取小程序列表")
    public Result<List<MiniAppBasicVO>> list() {
        return miniAppBasicServiceClient.queryMiniAppAll();
    }
}
